<template>
  <div id="app">
    <van-nav-bar
  :title="title"
  left-text="返回"
  left-arrow
  @click-left="ClickLeft"
/>
<router-view></router-view>
<van-tabbar v-model="active">
  <van-tabbar-item icon="home-o" to="/home"></van-tabbar-item>
  <van-tabbar-item icon="friends-o" to="/friends"></van-tabbar-item>
  <van-tabbar-item icon="cart-o" info="6" to="/cart"></van-tabbar-item>
  <van-tabbar-item icon="search" to="/search"></van-tabbar-item>

  </van-tabbar>
  </div>
</template>

<script>
export default {
  data () {
    return {
      title: '首页',
      active: 0
    }
  },
  methods: {
    ClickLeft() {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="scss" scoped>
</style>